/*
 * @Description:: 请补充填写
 * @Version: 1.0
 * @Author: 小白
 * @Date: 2022-04-15 09:52:54
 * @LastEditors: 小白
 * @LastEditTime: 2022-04-15 09:53:59
 * @FilePath: \vite-admin\src\api\login.ts
 */

import request from '@/utils/request';
import type { ILoginResponse } from './types/common';

export const captchaImage = () => {
  return request({
    method: 'get',
    url: '/captchaApi/captchaImage'
  });
};

export const login = (data: {
  key: string;
  accountNo: string;
  code: string;
  accountPassword: string;
  domain: string;
}) => {
  return request<ILoginResponse>({
    url: '/studentSide/stuSideLogin',
    method: 'post',
    data
  });
};
